package com.eelye.util.winui.base;

import com.sun.jna.Native;
import com.sun.jna.platform.win32.WinDef;
import com.sun.jna.win32.StdCallLibrary;

public class CommCtrl {

    public static final int TVIF_TEXT = 0x0001;
    public static final int TVM_GETITEMW = 0x110D;
    public static final int TVE_COLLAPSE = 0x0002;
    public static final int TVE_EXPAND = 0x0001;
    public static final int TVM_EXPAND = 0x1101;
    public static final int TVM_SELECTITEM = 0x1102;
    public static final int TVGN_CARET = 0x0000000c;
    public static final int TVM_GETNEXTITEM = 0x1107;
    public static final int TVGN_NEXT = 0x0001;
    public static final int TVGN_CHILD = 0x0004;


    public interface ComCtl extends StdCallLibrary {

        ComCtl INSTANCE = Native.load("comctl32", ComCtl.class);

        boolean TreeView_GetNextItem(WinDef.HWND hWnd, HTREEITEM hitem, int flag);

    }
}